<div class="header">
	<div id="logo">
		<a href="/"><?php echo $html->image(HOST."/logo-{$session->read('color')}.png")?></a>
	</div>
	<?php echo $this->element('main_menu');?>
	<div id="user-signup-login-panel">
		<div id="user-panel-content">
			<?php 
			if($session->check("Auth.User.id")){?>
				<?php //echo $session->read("Auth.User.email")?>  
				<?php 
				echo $html->link(__('logout',true),array('plugin'=>false,'controller'=>'users','action'=>'logout'),array('escape'=>false,'title'=> $session->read("Auth.User.email")));
				echo ' | ';
				switch($session->read("Auth.User.group")){
					case 'admin':
						echo $html->link(__('account',true),array('plugin'=>false,'controller'=>'users','action'=>'index'),array('escape'=>false,'title'=>__('Your Account',true)));
						break;
					case 'manag':
						echo $html->link(__('account',true),array('plugin'=>false,'controller'=>'users','action'=>'index'),array('escape'=>false,'title'=>__('Your Account',true)));
						break;
					case 'users':
						echo $html->link(__('account',true),array('plugin'=>false,'controller'=>'users','action'=>'view'),array('escape'=>false,'title'=>__('Your Account',true)));
						break;					
				}
			}else{
				$user = (isset($this->data['User']['id'])) ? $this->data['User']['id'] : null;
				echo $html->link(__('register',true),array('plugin'=>false,'controller'=>'users','action'=>'register'),array('escape'=>false));
				echo ' | ';
				echo $html->link(__('login',true),array('plugin'=>false,'controller'=>'users','action'=>'login'),array('escape'=>false));
				
			}
// 			echo ' | ';
// 			$color = $session->read('color');
// 			$color = ($color == 'green') ? 'blue' : 'green';
// 			echo $this->Html->link('zmiań na: '.$color,array('controller'=>'carts','action'=>'kolor',$color));
			?>
		</div>
	</div>
	<?php //echo $this->element('cart_info_top',array('plugin' => 'store')); ?>
		

	<div class="clr"></div>		
</div>
<div class="clr"></div>